package lab02.Test11;

/**
 * Created by Administrator on 2017/11/17.
 */
public class Square extends Rectangle{

    @Override
    public void printMyWay() {
        System.out.println("正方形信息：");
        System.out.println("正方形边长为："+a);
        System.out.println("正方形面积为："+area(a,b));
        System.out.println("正方形周长为："+perimeter(a,b));
        System.out.println();
    }
}

